package com.idata.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @File EdgeEntity.Java
 * @Modify Time      @Author    @Version    @Description
 * ------------      -------    --------    -----------
 * 2023/9/20         yd.j      1.0          点的实体类
 */
@Data
public class EdgeEntity {

    private int ranking;
    private int type;
    private String dst;
    private String src;
    private String name;

    private Follow follow;
    private Serve serve;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Follow {
        private String degree;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Serve {
        private int startYear;
        private int endYear;
    }
}
